![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
decompress-tar
Advanced tools
Package description
The decompress-tar npm package is a module designed to decompress tarball files (.tar). It is often used in conjunction with other decompression modules to handle different compression formats. The package provides a simple API for extracting files from a tar archive.
Decompress tar files
This feature allows you to decompress .tar files. The code sample shows how to use the decompress-tar plugin with the decompress module to extract files from a tar archive to a specified directory.
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(files => {
console.log('Files decompressed successfully!');
});
The 'tar' package provides the ability to create, extract, and manipulate tarball archives. It has a more comprehensive feature set for handling tar files compared to decompress-tar, which is specifically for decompression.
The 'tar-fs' package allows for packing and extracting tarball filesystem streams. It is similar to decompress-tar but also supports packing, and it works with the file system directly.
The 'unzipper' package is for extracting .zip files. While it is not for tar files, it provides similar decompression functionality for a different archive format.
Readme
tar decompress plugin
$ npm install decompress-tar
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise for a Buffer and a Duplex stream.
Type: Buffer
Stream
Buffer or stream to decompress.
MIT © Kevin Mårtensson
FAQs
Unknown package
The npm package decompress-tar receives a total of 1,708,874 weekly downloads. As such, decompress-tar popularity was classified as popular.
We found that decompress-tar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.